package com.hrms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hrms.entity.User;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper extends BaseMapper<User> {
    // 连接表user和表customer，查询所有记录
    List<Map<String, Object>> selectAll();

    // 连接表user和表customer，根据user_id查询表customer中的所有记录
    List<Map<String, Object>> selectCustomer(Integer user_id);
}
